package com.briup.jd2407cms.mapper;

import com.briup.jd2407cms.domain.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.briup.jd2407cms.domain.extend.CategoryExtend;

import java.util.List;

/**
* @author jay
* @description 针对表【cms_category】的数据库操作Mapper
* @createDate 2024-11-18 14:40:14
* @Entity com.briup.jd2407cms.domain.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    List<CategoryExtend> selectAllWithParent();
    List<CategoryExtend> selectAllWithChild();
    List<Category> selectByParentId(Integer parenId);

    //查询栏目表中最大的order_num值
    // 获取权重的最大值
    Integer selectMaxOrderNum();
}




